<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-html"  prefix="html"%>
<% 
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>学生申请审核</title>
    <link href="CSS/Accessible_Design.css" rel="stylesheet" type="text/css" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<script type="text/javascript" language="java">
	
	function checkNumber()
	{
	var applyNumber="${upt.applyPassNumber}";

	var peopleNumber="${upt.pts.peopleNum}"; 
	
	if(applyNumber==peopleNumber){
		alert("此工作的人数已够，不能在审核");
		return false;
	}
		//	auditId.action='auditptmag.do';
		//	auditId.submit();
	}
	
	function returnUp(){
		auditId.action='auditptmag.do';
		auditId.submit();
	}
	
	</script>

  </head>
  
  <body>
  <html:form action="parttimeapplyaudit.do" styleId="auditId">
   <table width="568" height="387" border="1" cellspacing="0" class="small">
	<tr>
		<td colspan="4">
		  <font color="#000066" size="+3" >
		  <center>助学岗位信息</center>
		  </font>
		  </td>
	</tr>
	<tr>
	<html:hidden property="userPartTimeId" value="${upt.uspartId}"/>
	  <td height="32" colspan="4">用人单位：${upt.pts.company }</td>
	</tr>
	<tr>
	  <td height="26" colspan="2"> 联系人：${upt.pts.contactName }</td>
	  <td width="202">联系电话：${upt.pts.conPhone }</td>
	  <td width="202">电子邮箱：${upt.pts.emile }</td>
	</tr>
	<tr>
		
		<td height="122" colspan="4">
			<table width="568" height="132" border="1" cellspacing="0" class="small">
				<tr  >
					<td width="48" height="116" rowspan="6">岗位情况</td>
					<td width="60"><p>岗位性质</p></td>
					<td width="446">
					<c:if test="${upt.pts.status == 1}">
						<c:out value=" 固定时间" />
					</c:if>
					<c:if test="${upt.pts.status == 2}">
						<c:out value="兼职" />
					</c:if>
					
					</td>
				</tr>
				<tr  >
				  <td>岗位时间</td>
				  <td>${upt.pts.startTime}到${upt.pts.endTime }</td>
				</tr>
				<tr>
				  <td>筹金</td>
				  <td>${upt.pts.money }</td>
				</tr>
				<tr  >
				  <td>备注</td>
				  <td>${upt.pts.other }</td>
				</tr>
				<tr>
				  <td height="26">岗位工作内容 </td>
				  <td>${upt.pts.content}</td>
				</tr>
				
				<tr>
				  <td> 人数对比</td>
				   <td>需求人数：${upt.pts.peopleNum} |通过审批人数：${upt.applyPassNumber}  |申请人数：${upt.applyNumber} </td>
				</tr>
			</table>	
		</td>
	</tr>
	<tr>
	  <td height="23" colspan="4">
		  <table width="568" height="88" border="1" cellspacing="0" class="small">
		    <tr>
		          <td width="138">姓名：${upt.user.stu.stuName }</td>
		          <td colspan="2">性别:

				<c:if test="${upt.user.stu.sex == 1}">
						<c:out value="女" />
					</c:if>
					<c:if test="${upt.user.stu.sex == 2}">
						<c:out value="男" />
					</c:if>
				</td>
		          <td width="228" colspan="2">出生日期：${upt.user.stu.ages }</td>
		        </tr>
		        <tr>
		          <td>名族：${upt.user.stu.residents }</td>
		          <td colspan="2">政治面貌：${upt.user.stu.nation }</td>
		          <td colspan="2">省份证号：${upt.user.stu.userId }</td>
		        </tr>
		        <tr>
		          <td colspan="2">专业： ${upt.user.stu.speciality }</td>
		          <td colspan="3">班级学号：${upt.user.stu.studentId }</td>
		        </tr>
		        
		    </table>
	    </td>
	</tr>
	<tr>
	  <td width="79" height="24">备注
	    </td>
	  <td height="24" colspan="3">
	  <html:textarea property="auditRemark" cols="50" rows="5"></html:textarea>
	  </td>
	</tr>
	<tr>
		  <td height="28" colspan="4">
		 
		 		<input type="radio" name="auditStatus" value="1" checked>通过
		 		<input type="radio" name="auditStatus" value="99" >通过
		   </td>
	</tr>
	<tr>
	<td>
	<html:submit value="确定" onclick="return checkNumber();"></html:submit>
	<html:button property="返回"  value="返回" onclick="returnUp();"></html:button>
	</td>
	</tr>
</table>

</html:form>
  </body>
</html>
